window.addEventListener('load', function () {
    (function () {
        //第一个立即执行函数是就业指导
        var swiper = new Swiper('.swiper-container', {
            slidesPerView: 2,  //页面中显示元素的个数
            spaceBetween: 30,  //页面中元素之间的空隙
            centeredSlides: true,  //是否中心的最大显示
            loop: true,
            navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
            },
        });
    })();

    (function () {
        //第二个立即执行函数是充电学习
        var swiper = new Swiper(".mySwiper", {
            slidesPerView: 2.3,
            spaceBetween: 30,
        });
    })();
})